import request1 from '@/utils/request1'
import request from '@/utils/request'
// 订单管理-- 列表--（卡券共用）
export function card_ticket_index(query) {
    return request1({
        url: 'admin/order/card_ticket_index',
        method: 'get',
        params: query
    })
}
//
export function refund(query) {
    console.log(process.env.BASE_API2)

    return request1({
        url: 'v4_5/market_order/refund',
        method: 'post',
        data: query
    })
}
//拒绝退款
export function refund_cancle(query) {
    return request1({
        url: 'admin/order/refund_cancle',
        method: 'get',
        params: query
    })
}
//分成详情
export function getApplyDetailByCardOrderId(query) {
    return request({
        url: 'com.mmk.reservation.api.AdminAllowanceApplyProvider/1.0.0/getApplyDetailByCardOrderId.html',
        method: 'post',
        data: query
    })
}
//分成明细查询
export function findRewardTransByOrderIdAndType(query) {
    return request({
        url: 'com.mmk.member.api.AdminUsersRewardTransProvider/1.0.0/findRewardTransByOrderIdAndType.html',
        method: 'post',
        data: query
    })
}
//分成用户链
export function getRewardUserListByOrderIdAndType(query) {
    return request({
        url: 'com.mmk.member.api.AdminUsersRewardTransProvider/1.0.0/getRewardUserListByOrderIdAndType.html',
        method: 'post',
        data: query
    })
}